package com.cx.mall.user.dao.impl;

import com.cx.mall.jdbc.JdbcUtils;
import com.cx.mall.user.dao.IUserLoginLogDao;
import com.cx.mall.user.entity.UserLoginLog;
import org.springframework.stereotype.Component;


import java.util.List;
@Component

public class UserLoginLogDaoImpl implements IUserLoginLogDao {
    @Override
    public void insert(UserLoginLog userLoginLog) throws Exception {
        String sql = "INSERT INTO user_login_log VALUES(?,?,?,?)";
        Object[] params = {
                userLoginLog.getId(),
                userLoginLog.getUserId(),
                userLoginLog.getCreateTime(),
                userLoginLog.getIp()
        };
        JdbcUtils.update(sql,params);
    }
    @Override
    public void update(UserLoginLog userLoginLog) throws Exception {
    }
    @Override
    public void deleteById(Object id) throws Exception {
    }
    @Override
    public UserLoginLog selectOne(Object... params) throws Exception {
        return null;
    }
    @Override
    public List<UserLoginLog> selectList(Object... params) throws Exception {
        return null;
    }
    public UserLoginLog selectById(Object id) throws Exception {
        return null;
    }
}
